package cn.itsource.autoconfigure;

import cn.itsource.pojo.properties.AppSettingProperties;
import cn.itsource.template.WeChatTemplate;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(AppSettingProperties.class)
public class WeChatAutoConfiguration {
    @Bean
    public WeChatTemplate weChatTemplate(){
        return new WeChatTemplate();
    }
}
